<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="/resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="/resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <title>EJC - Encontro de Jovens com Cristo</title>
    </h:head>

    <h:body>
        <h:form id="form-principal">
            <p:panelGrid columns="4" id="top" style="width: 100%;" >
                <h:graphicImage alt="EJC" value="/resources/img/logo-ejc.png"/>
                <h4>Encontro de Jovens com Cristo</h4>
                <p:selectOneMenu id="selectAno">
                    <f:selectItems value="#{menuBarBean.encontroList}" var="encontro" 
                                   itemLabel="#{encontro.ano.toString()}" itemValue="#{encontro}"/>
                </p:selectOneMenu>
                <ui:include src="/WEB-INF/template/menu.xhtml"/>
            </p:panelGrid>

            <div id="content" class="center_content">
                <p:growl id="messages" ></p:growl>

                <p:panel>
                    <ui:insert name="content">Content</ui:insert>
                </p:panel>
            </div>

            <div id="bottom">
                Copyright 2012 <a href="http://www.jadum.com">Jadum</a> All rights reserved.
            </div>
        </h:form>
    </h:body>

</html>
